package org.nashua.tt151;

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.SimpleRobot;

public class SwitchExample extends SimpleRobot {
    public DigitalInput switch1 = new DigitalInput(RobotMap.DigitalIn.SWITCH1);
    public void operatorControl() {
        while (isEnabled() && isOperatorControl()) {
            System.out.println("State: "+switch1.get());
        }
    }
}
